
//
// 101128 - AH - Created.
//

package org.soekrat.engine.mine;

/**
 * <p>
 *   A resource value.
 * </p>
 * @author Arne Halvorsen (AH)
 * @author Laetitia Le Chatton (LLC) 
 */
public final class ResourceValue 
{
  private final String m_spec;
  
  private final Object m_value;
  
  /**
   * <p>
   *   Constructor.
   * </p>
   * @param spec  {@link #getSpec()}.
   * @param value {@link #getValue()}.
   */
  public ResourceValue(String spec, Object value)
  {
    if (spec==null)
    {
      throw new NullPointerException("spec");
    }
    if (value==null)
    {
      throw new NullPointerException("value");
    }
    
    m_spec=spec;
    m_value=value;
  }
  
  /**
   * <p>
   *   Gets specification of value.
   * </p>
   * @return Specification.
   */
  public String getSpec(){ return m_spec; }
  
  /**
   * <p>
   *   Gets value.
   * </p>
   * @return Value.
   */
  public Object getValue(){ return m_value; }
  
}
